/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.server.dao.impl.dto.object;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

/**
 * DTO - Données persistantes d'un utilisateur.
 */
@Entity(name = "User")
@Unindexed
public class DtoUser implements DtoObject {

	@Id
	private Long id;
	@Indexed
	private String mail;
	private Date creationDate;

	/**
	 * Construit une nouvelle instance de {@link DtoUser}.
	 */
	public DtoUser() {

	}

	/**
	 * Identifiant.
	 */
	public Long getId() {
		return id;
	}

	/**
	 * Définit l'identifiant.
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * Adresse mail.
	 */
	public String getMail() {
		return mail;
	}

	/**
	 * Définit l'adresse mail.
	 */
	public void setMail(String mail) {
		this.mail = mail;
	}

	/**
	 * Date de création de l'entité.
	 */
	public Date getCreationDate() {
		return creationDate;
	}

	/**
	 * Définit la date de création de l'entité.
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
}
